package org.com.yz.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.com.yz.dal.dao.mapper.HisAccntOnwayMapper;
import org.com.yz.dal.dao.model.HisAccntOnway;
import org.com.yz.dubbo.api.service.IHisAccntOnwayService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @ClassName HisAccntOnwayServiceImpl
 * @Author wzc
 * @Date 2018/7/31 20:02
 **/

@Service(version = "1.0.0")
public class HisAccntOnwayServiceImpl implements IHisAccntOnwayService {

    @Autowired
    private HisAccntOnwayMapper hisAccntOnwayMapper;


    public List<HisAccntOnway> selectHisAccntOnway(HisAccntOnway hisAccntOnway) {
        return hisAccntOnwayMapper.selectHisAccntOnway(hisAccntOnway);
    }

    public HisAccntOnway selectCountOnwayByTime(String mchNo, String lastWorkDay, String lastDay,String versionNo) {
        return hisAccntOnwayMapper.selectCountOnwayByTime(mchNo, lastWorkDay, lastDay,versionNo);
    }

    @Override
    public void updateOnway(HisAccntOnway hisAccntOnway) {
        hisAccntOnwayMapper.updateOnway(hisAccntOnway);
    }

    @Override
    public Integer insert(HisAccntOnway hisAccntOnway) {
        return hisAccntOnwayMapper.insert(hisAccntOnway);
    }
}
